package live.jialing.sip.base.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import live.jialing.core.beanvalidator.First;
import live.jialing.core.beanvalidator.Second;
import live.jialing.data.jpa.LocalDatePersistenceConverter;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * 含有职位头衔的职工信息
 */
@Setter
@Getter
@ToString
public class PositionEmployeeDTO implements Serializable {

    /**
     * 职务/头衔/职称
     */
    private String title;

    /**
     * 员工
     */
    private Long employeeId;

    /**
     * 公司
     */
    private Long companyId;

    /**
     * 用户
     */
    private Long userId;
    private String name;
    private String idno; // 身份证号
    private String sex; // 性别
    private LocalDate birthday;// 出生日期
    private String mobile;// 手机号
    private String email;// 邮箱
}
